<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "goods_stock".
 *
 * @property string $goods_stock_id
 * @property integer $goods_id
 * @property integer $stock
 */
class GoodsStock extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'd_try.goods_stock';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['goods_id', 'stock', 'solr_status'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'goods_stock_id' => 'Goods Stock ID',
            'goods_id' => 'Goods ID',
            'stock' => 'Stock',
            'solr_status' => 'Solr Status',
        ];
    }
}
